package com.vvlive.caibao.smartcity.ui;

import android.view.View;
import android.widget.Button;

import com.amap.api.maps2d.AMapUtils;
import com.amap.api.maps2d.model.LatLng;
import com.vvlive.caibao.smartcity.base.BaseActivity;
import com.vvlive.caibao.smartcity.view.CommonActionBar;

import org.kymjs.kjframe.ui.BindView;

import smartcity.vvlive.caibao.com.smartc.R;

/**
 * Created by lenovo on 2015/7/22.
 * 设置详细地址以及联系方式页
 */
public class LifeAdressActivity extends BaseActivity {
    @BindView(id = R.id.dizhi_queding,click = true)
    Button queing;
    @Override
    protected int getContentViewRes() {
        return R.layout.life_address_activity;
    }


    @Override
    public void initWidget() {
        super.initWidget();
        CommonActionBar actionBar = super.getCommonActionBar();
        actionBar.setTitle("地址");
    }

    @Override
    public void widgetClick(View v) {
        super.widgetClick(v);
        switch (v.getId()){
            case R.id.dizhi_queding:
                float a = AMapUtils.calculateLineDistance(new LatLng(34.000000,118.000000),new LatLng(35.000000,118.000000));

                toast("成功"+a);
                break;
        }
    }
}
